package com.macro.mall.portal.service;

import com.macro.mall.model.Addr;
import com.macro.mall.model.UmsMemberReceiveAddress;

import java.util.List;

/**
 * @Author：尚志豪
 * @Package：com.macro.mall.portal.controller
 * @Project：mall-swarm-B
 * @name：AddressService
 * @Date：2024/10/31 11:32
 */
public interface AddressService {
    /**
     * 地址列表
     */
    List<UmsMemberReceiveAddress> list();

    /**
     * 解析字符串为收货地址
     */
    UmsMemberReceiveAddress string2Addr(Addr addr);

    /**
     * 添加
     */
    void add(UmsMemberReceiveAddress umsMemberReceiveAddress);

    /**
     * 根据id回显
     */
    UmsMemberReceiveAddress find(Integer id);

    /**
     * 修改
     */
    void update(UmsMemberReceiveAddress umsMemberReceiveAddress);

    /**
     * 删除
     */
    void delete(Integer id);

}
